﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shipping_areadd11.aspx.cs" Inherits="WebSite.admin.shipping.shipping_areadd11" %>

 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>良臣直销网 </title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "管理中心";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span> 邮局平邮 - 新建配送区域。&nbsp;&nbsp;<img src='images/sort_desc.gif' /> <a href='shipping/shipping_area.aspx' target='content'><font color=#ff0000>配送区域</font></a>"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
	<script language="JavaScript" src="../../js/function.js"></script>
    <script language="javascript">
        function CheckFrm() {
            var obj = 'areaname,price1,price2,price3,price4,price5';
            var objt = '1,8,8,8,8,8';
            var msg = '配送区域名称,1000克以内费用,5000克以内续重每1000克费用,免费额度,5001克以上续重1000克费用,包装费用';
            var chks = chk(form1, obj, objt, msg)
            if (!chks) {
                return false;
            }
        }
    </script>
<% =strAreaData %>
<script language = "JavaScript" type="text/javascript">
    function changearea1() {
        var oneid = document.all("<% =Ddl_AreaOne.ClientID %>").value;
        var i;
        for (i = 0; i < onecount; i++) {
            if (subcat[i][1] == oneid) {
                document.all("<% =Ddl_AreaTwo.ClientID %>").options[document.all("<% =Ddl_AreaTwo.ClientID %>").length] = new Option(subcat[i][0], subcat[i][2]);
            }
        }

    }
    function changearea2() {
        var twoid = document.all("<% =Ddl_AreaTwo.ClientID %>").value;
        var i;
        for (i = 0; i < onecount1; i++) {
            if (subcat1[i][1] == twoid) {
                document.all("<% =Ddl_AreaThree.ClientID %>").options[document.all("<% =Ddl_AreaThree.ClientID %>").length] = new Option(subcat1[i][0], subcat1[i][2]);
            }
        }
    }
    function changearea3() {
        var threeid = document.all("<% =Ddl_AreaThree.ClientID %>").value;
        var i;
        for (i = 0; i < onecount2; i++) {
            if (subcat2[i][1] == threeid) {
                document.all("<% =Ddl_AreaFour.ClientID %>").options[document.all("<% =Ddl_AreaFour.ClientID %>").length] = new Option(subcat2[i][0], subcat2[i][2]);
            }
        }
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <table width="95%" border="0" cellpadding="1" cellspacing="0">
  <TR>
    <TD class="title01" align="right" width="28%">配送区域名称：</TD>
    <TD><INPUT size="40" name="areaname" id="areaname" runat="server" />*</TD></TR>
  <TR>
    <TD class="title01" align="right">
        1000克以内费用：</TD>
    <TD><INPUT name="price1" id="price1" runat="server" value="3.5" />*</TD></TR>
  <TR>
    <TD class="title01" align="right">
        5000克以内续重每1000克费用：</TD>
    <TD><INPUT name="price2" id="price2" runat="server" value="2" />*</TD></TR>
  <TR>
    <TD class="title01" align="right">免费额度：</TD>
    <TD><INPUT name="price3" id="price3" runat="server" value="0" />*</TD></TR>
   <TR>
    <TD class="title01" align="right">5001克以上续重1000克费用：</TD>
    <TD><INPUT name="price4" id="price4" runat="server" value="2.5" />*</TD></TR>
   <TR>
    <TD class="title01" align="right">包装费用：</TD>
    <TD><INPUT name="price5" id="price5" runat="server" value="0" />*</TD></TR>
  </TABLE> 

<table width="95%" border="0" cellpadding="1" cellspacing="0"> 
  <tr><td colspan="2">所辖地区：</td></tr>
  <tr><td width="17%"></td><td>
  <asp:CheckBoxList ID="area" runat="server" RepeatColumns="10">
  </asp:CheckBoxList>
  </td></tr>
  <tr> 
    <TD align="right" colspan="2">
     <SPAN style="VERTICAL-ALIGN: top">国家：</SPAN>
        <asp:ListBox  ID="Ddl_AreaOne" runat="server" AppendDataBoundItems="True" Width="100px" Height="200px">
        <asp:ListItem Value="0" Selected="True">请选择</asp:ListItem>
        </asp:ListBox> 
     <SPAN style="VERTICAL-ALIGN: top">省份：</SPAN> 
        <asp:ListBox ID="Ddl_AreaTwo" runat="server" Width="100px" Height="200px">
        <asp:ListItem Value="0" Selected="True">请选择</asp:ListItem>
        </asp:ListBox> 
     <SPAN style="VERTICAL-ALIGN: top">城市：</SPAN>
        <asp:ListBox ID="Ddl_AreaThree" runat="server" Width="100px" Height="200px">
        <asp:ListItem Value="0" Selected="True">请选择</asp:ListItem>
        </asp:ListBox>
      <SPAN style="VERTICAL-ALIGN: top">区/县：</SPAN>
        <asp:ListBox ID="Ddl_AreaFour" runat="server" Width="100px" Height="200px">
        <asp:ListItem Value="0" Selected="True">请选择</asp:ListItem>
        </asp:ListBox>
       <SPAN style="VERTICAL-ALIGN: top"><asp:Button ID="Button1" runat="server" Text="+" OnClick="Button1_Click" /></SPAN> 
    </TD></TR>
</TABLE>
<TABLE>
  <TR>
    <TD align=middle>
    <asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
     &nbsp;<a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></TD></TR></TABLE>
   
</TD></TR>
</TABLE>
    </div>
    </form>
</body>
</html>

